#!/usr/bin/env bash
amixer get 'Master',0  | grep "Front Left:" | grep off > /dev/null
if [ $? -eq 0 ]; then
	echo "0"
else
	# amixer get Master -M | grep -oP '\d*%' | tail -n1 | sed 's/%//g'
	volume=`amixer get Master -M | grep -oP '\d*%' | tail -n1`
	printf "<span color='#ffff00'>%s</span>\n" $volume
fi
